﻿@model qltscd.Models.BaseClient.LoaiThietBi
@{
    ViewBag.Title = "SuaChungLoai";
    Layout = "~/Views/Shared/Modules/_LayoutDanhMucNhapLieu.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function submitTaoChungLoai(kieu) {
        document.getElementById("kieu").value = kieu;
        document.forms["TaoChungLoai"].submit();
    }
</script>

@using (Html.BeginForm("SuaChungLoai", "LoaiThietBi", FormMethod.Post,new { @id = "TaoChungLoai" }))
{
    @Html.ValidationSummary(true);
    @Html.HiddenFor(o => o.IdentityChungLoai);
    <input type="hidden" value="0" name="kieu" id="kieu"/>                              
    <fieldset>
    <legend>Danh Mục Chủng Loại</legend>
    <table border="0" width="100%" cellpadding="10px" cellspacing="10px">
        <tr>
            <td style="margin-left: 10px;" class="label_col" width="30%">
                Mã chủng loại
            </td>
            <td>
                @Html.TextBoxFor(Model => Model.MaChungLoai, new { @style = "width:97%; " })
            
            </td>
        </tr>
        <tr>
            <td style="margin-left: 10px;" class="label_col">
                Tên chủng loại
            </td>
            <td>
                @Html.TextBoxFor(Model => Model.TenChungLoai, new { @style = "width:97%; " })

            </td>
        </tr>
    </table>
    </fieldset>
    <div class="divButton">
            <input type="submit" value="Lưu" class="button"/>&nbsp;
            <input type="reset" value="Nhập lại" class="button" />&nbsp;
            @Html.ActionLink("Thoát", "Index", null, new { @class = "button" })
        </div>
}
  <div class="errBlock">
                    @Html.ValidationMessageFor(Model => Model.MaChungLoai, "", new { @style = "display:block" })
                    @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
                    <br />
                    @Html.ValidationMessageFor(Model => Model.TenChungLoai, "", new { @style = "display:block" })
                
                </div>